<template>
  <ul>
    <li @click="toBoard1">看板1</li>
    <li @click="toBoard2">看板2</li>
    <li @click="toBoard3">看板3</li>
  </ul>
</template>

<script setup>
const router = useRouter()
const toBoard1 = () => {
  router.push('/board1')
}
const toBoard2 = () => {
  router.push('/board2')
}
const toBoard3 = () => {
  router.push('/board3')
}
</script>

<style lang="scss" scoped>
ul{
  display: flex;
  li{
    margin: 0 10px;
    cursor: pointer;
    text-decoration: underline;
  }
}
</style>